<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">

<head>
    <meta charset="UTF-8">
    <title>疾病信息库</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="stylesheet" href="../static/css/disease_list.css" th:href="@{/css/disease_list.css}">
    <link rel="stylesheet" href="../static/css/public.css" th:href="@{/css/public.css}">
    <link rel="stylesheet" type="text/css" href="../static/admin/sweetalert/sweetalert.css" th:href="@{/admin/sweetalert/sweetalert.css}"/>
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="../static/admin/sweetalert/sweetalert.min.js" th:src="@{/admin/sweetalert/sweetalert.min.js}"></script>
    <link rel="shortcut icon" href="../static/img/logo.png" th:href="@{/img/logo.png}" type="image/x-icon"/>

    <style>
    </style>
</head>
<body>
<!--navbar-->
<div th:replace="public.html::bbsheadnav('disease')"></div>

<div class="container-fluid col-md-8 col-md-offset-3">
    <div class="row dkindof" style="margin-top: 20px">
        <div class="col-md-11">
            <d  th:each="d_tags : ${diseaseTags}">
                <a class="dbtn dbtnselect" th:if="${selecttagid}==${d_tags.getId()}"
                     th:text="${d_tags.getName()}">knn凡达
                </a>
                <a class="dbtn" th:unless="${selecttagid}==${d_tags.getId()}" th:href="@{/disease/parts_by_id/}+${d_tags.getId()}"
                     th:text="${d_tags.getName()}">knn凡达
                </a>
            </d>

            <a th:if="${selecttagid}==0" class="dbtn dbtnselect" >
                全部
            </a>
            <a class="dbtn" th:unless="${selecttagid}==0" th:href="@{/disease/parts_by_id/0}">
                全部
            </a>

        </div>
    </div>
    <div class="row" id="dparts" style="margin-top: 20px">
        <a th:each="dise : ${diseases}" class="col-md-5 ditem" style="text-decoration: none;"
           th:href="@{'/disease/select_by_id/'+${dise.getId()}}">
            <div class="dtitle" th:text="${dise.getTitle()}">抑郁暴食症</div>
            <div class="ddescrip" th:text="${dise.getIntroduce()}">
                被害妄想症被害妄想症是妄想症中最常见的一种，它是精神疾病的一个重要症状。主要是指患者往往处于恐惧状态而胡乱推理和判断，思维发生障碍...
            </div>
            <div class="dbutton">
                <span class="glyphicon glyphicon-eye-open" th:text="${dise.getView()}">1234</span>
                <span class="glyphicon glyphicon-calendar"
                      th:text="${#temporals.format(dise.getDate(), 'yyyy-MM-dd')}">2020-10-20</span>
            </div>
        </a>
    </div>
</div>

<div th:replace="public.html::bbsloginform"></div>
</body>

<script th:src="@{/js/snowfall.js}"></script>
<script th:src="@{/js/public.js}"></script>
</html>
